From bcffb8ae7304e113c5a8b6b65f9dc06587b1a67e Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 11 Feb 2003 23:45:21 +0000 Subject: [PATCH] (makefile-font-lock-keywords): Fontify single character variable references, but protect shell variables references. (makefile-mode): Make `$' be punctuation in font-lock-defaults. --- lisp/progmodes/make-mode.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 4d825f83239..98a3d460884 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -268,13 +268,16 @@ not be enclosed in { } or ( )." ;; Do dependencies. These get the function name face. (list makefile-dependency-regex 1 'font-lock-function-name-face) - ;; Variable references even in targets/strings/comments: + ;; Variable references even in targets/strings/comments. '("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) - ;; Automatic variable references. - '("\\$\\([@%\\)" 1 font-lock-reference-face prepend) '("\\$[({]\\([@%